//
//  MineViewController.m
//  GiftNotes
//
//  Created by wsh on 15/8/11.
//  Copyright (c) 2015年 wsh. All rights reserved.
//

#import "MineViewController.h"
#import "Screen.h"
@interface MineViewController ()

@property (nonatomic, strong)UITableView *tableView;

{
    UIScrollView *myScrollView;
    UIImageView *myImageView;
    UILabel *label;
    UIView *loginView;
}
@end

@implementation MineViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.barTintColor = [UIColor orangeColor];
    //  改变下一层返回按钮的标题
    UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:nil action:nil];
    [self.navigationItem setBackBarButtonItem:backItem];
    
    //  改变标题的颜色
    NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:
                                [UIColor whiteColor],
                                NSForegroundColorAttributeName, nil];
    [self.navigationController.navigationBar setTitleTextAttributes:attributes];
    self.navigationItem.title = @"我的";
    
    myScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    myScrollView.contentSize = CGSizeMake(SCREEN_WIDTH,SCREEN_HEIGHT * 11 / 10);
    myScrollView.scrollEnabled = YES;
    
    [self.view addSubview:myScrollView];
    
    
    
    loginView = [[UIView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH / 2 - 30, 50, 50, 50 + 20)];
    loginView.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:loginView];

    self.navigationController.navigationBarHidden = YES;
    self.view.backgroundColor = [UIColor grayColor];
    myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];
    myImageView.backgroundColor = [UIColor redColor];
    myImageView.layer.cornerRadius = 25;
    [loginView addSubview:myImageView];
    
    label = [[UILabel alloc] initWithFrame:CGRectMake(0, 50 + 10, 50, 20)];
    label.backgroundColor = [UIColor redColor];
    label.textAlignment = 1;
    label.font = [UIFont systemFontOfSize:15];
    label.text = @"登录";
    [loginView addSubview:label];
    UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapGestureAction:)];
    [loginView addGestureRecognizer:tapGestureRecognizer];
    }

- (void)tapGestureAction:(UITapGestureRecognizer *)sender{
    NSLog(@"122121");
    
}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)creatTableView
{
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
